package com.bw.home.intent

import com.bw.home.entity.CollectEntity
import com.bw.lib_miv.IUiIntent

sealed class HomeIntent : IUiIntent {
    //获取类型
    data object getSimpleType : HomeIntent()

    //获取数据
    data class getSimpleVideo(val id: String, val page: Int, val size: Int) : HomeIntent()

    //猜您喜欢
    data class getRecommendSimpleVideo(val page: Int, val size: Int) : HomeIntent()

    //评论
    data class getComment(val type: Int, val id: String) : HomeIntent()

    //收藏
    data class getCollect(val entity: CollectEntity) : HomeIntent()

    //取消收藏
    data class unCollect(val entity: CollectEntity) : HomeIntent()

    //登录
    data class login(val username: String, val password: String) : HomeIntent()

    //注册
    data class register(val username: String, val password: String) : HomeIntent()

    //修改密码
    data class updatePassword(val userId: Int, val newPassword: String) : HomeIntent()
}